unit RComboio;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, RLReport, StdCtrls;

type
  TFormRComboio = class(TForm)
    RLReport1: TRLReport;
    RLBand1: TRLBand;
    RLGroup1: TRLGroup;
    RLBand2: TRLBand;
    RLGroup2: TRLGroup;
    RLBand3: TRLBand;
    RLDBText1: TRLDBText;
    RLLabel1: TRLLabel;
    RLLabel2: TRLLabel;
    RLBand4: TRLBand;
    RLDBText2: TRLDBText;
    RLLabel3: TRLLabel;
    RLLabel4: TRLLabel;
    RLDBText3: TRLDBText;
    RLLabel5: TRLLabel;
    RLLabel6: TRLLabel;
    RLLabel7: TRLLabel;
    RLLabel8: TRLLabel;
    RLDBText5: TRLDBText;
    RLDBText6: TRLDBText;
    RLDBText4: TRLDBText;
    RLDBText7: TRLDBText;
    RLLabel10: TRLLabel;
    RLLabel12: TRLLabel;
    RLLabel13: TRLLabel;
    RLLabel14: TRLLabel;
    RLLabel15: TRLLabel;
    RLDBText8: TRLDBText;
    RLDBText10: TRLDBText;
    RLDBText11: TRLDBText;
    RLLabel11: TRLLabel;
    RLLabel18: TRLLabel;
    RLLabel19: TRLLabel;
    RLDBText12: TRLDBText;
    RLLabel20: TRLLabel;
    RLDBText13: TRLDBText;
    RLDBText17: TRLDBText;
    RLDBText18: TRLDBText;
    RLDBText19: TRLDBText;
    RLDBText23: TRLDBText;
    RLDBText26: TRLDBText;
    RLLabel24: TRLLabel;
    RLLabel29: TRLLabel;
    RLLabel30: TRLLabel;
    RLLabel31: TRLLabel;
    RLDBText27: TRLDBText;
    RLDBText28: TRLDBText;
    RLLabel32: TRLLabel;
    RLDBText29: TRLDBText;
    RLDBText30: TRLDBText;
    RLImage1: TRLImage;
    RLDBText31: TRLDBText;
    RLDBText32: TRLDBText;
    RLLabel33: TRLLabel;
    RLLabel34: TRLLabel;
    RLLabel35: TRLLabel;
    RLLabel36: TRLLabel;
    RLDBText33: TRLDBText;
    RLDBText34: TRLDBText;
    RLReport2: TRLReport;
    RLBand6: TRLBand;
    RLDBText35: TRLDBText;
    RLDBText36: TRLDBText;
    RLBand7: TRLBand;
    RLSystemInfo1: TRLSystemInfo;
    RLBand5: TRLBand;
    RLDraw1: TRLDraw;
    RLLabel37: TRLLabel;
    RLLabel38: TRLLabel;
    RLLabel39: TRLLabel;
    RLLabel9: TRLLabel;
    RLDBText9: TRLDBText;
    RLLabel16: TRLLabel;
    RLDBText14: TRLDBText;
    RLLabel17: TRLLabel;
    RLDBText15: TRLDBText;
    RLLabel21: TRLLabel;
    RLDBText16: TRLDBText;
    RLLabel22: TRLLabel;
    RLDBText20: TRLDBText;
    procedure RLBand2BeforePrint(Sender: TObject; var PrintIt: Boolean);
    procedure RLBand1BeforePrint(Sender: TObject; var PrintIt: Boolean);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FormRComboio: TFormRComboio;

implementation

uses DMR, DMS, Geral;

{$R *.dfm}

procedure TFormRComboio.RLBand2BeforePrint(Sender: TObject;
  var PrintIt: Boolean);
begin
    PrintIt := False;
end;

procedure TFormRComboio.RLBand1BeforePrint(Sender: TObject;
  var PrintIt: Boolean);
begin
    if (GetParametro('LOGO') <> '') and ((pos('BMP',UpperCase(GetParametro('LOGO'))) > 0) or (pos('JPG',UpperCase(GetParametro('LOGO'))) > 0))then
        RLImage1.Picture.LoadFromFile(GetParametro('LOGO'));
end;

end.
